/**
 *@Author: QWP
 *@Description: OA相关的路由
 *@Date 2024-07-08 10:14
 */

// Oa 首页相关的路由
const indexRouter = [
  // 应急首页
  {
    path: "EmergencyIndex",
    name: "EmergencyIndex",
    component: () => import("@/views/index/emergencyIndex/Index.vue"),
  },
  // 应急新首页
  {
    path: "EmergencyIndexNew",
    name: "EmergencyIndexNew",
    component: () => import("@/views/index/emergencyIndex/IndexNew.vue"),
  },
  // 功能导航
  {
    path: "FunctionNavigate",
    name: "FunctionNavigate",
    component: () => import("@/views/index/funNavigat/Index.vue"),
  },
  // 应急预警导航
  {
    path: "EmergencyNav",
    name: "EmergencyNav",
    component: () => import("@/views/index/emergencyNav/Index.vue"),
  },
];

// Oa 行政管理相关路由
const administrationRouter = [
  // 支出合同登记
  {
    path: "Contract/:pType",
    name: "Contract",
    component: () => import("@/views/oa/administration/contract/contract/Index.vue"),
  },
  // 合同收款方配置
  {
    path: "ContractCooperate",
    name: "ContractCooperate",
    component: () => import("@/views/oa/administration/contract/cooperate/Index.vue"),
  },
  // 合同查询
  {
    path: "ContractSearch",
    name: "ContractSearch",
    component: () => import("@/views/oa/administration/contract/search/Index.vue"),
  },
  // 新闻查询
  {
    path: "NewsPublicity/:pType",
    name: "NewsPublicity",
    component: () => import("@/views/oa/administration/news/Index.vue"),
  },
  // 差旅管理
  {
    path: "OaTravel/:pType",
    name: "OaTravel",
    component: () => import("@/views/oa/administration/travel/Index.vue"),
  },
  // 差旅审核
  //  {
  //   path: 'OaTravelExamine',
  //   name: 'OaTravelExamine',
  //   component: () => import('@/views/oa/administration/travel/travelExamine.vue'),
  // },
  // 会议申请
  {
    path: "OaMeetApplicant/:pType",
    name: "OaMeetApplicant",
    component: () => import("@/views/oa/administration/meet/applicant/Index.vue"),
  },
  // 会议申请审核
  {
    path: "OaMeetApplicantAudit",
    name: "OaMeetApplicantAudit",
    component: () => import("@/views/oa/administration/meet/applicant/IndexAudit.vue"),
  },
  // 会议室管理
  {
    path: "OaMeetRoom",
    name: "OaMeetRoom",
    component: () => import("@/views/oa/administration/meet/room/Index.vue"),
  },
  // 会议室使用情况
  {
    path: "OaMeetRoomUseDetial",
    name: "OaMeetRoomUseDetial",
    component: () => import("@/views/oa/administration/meet/room/UseDetial.vue"),
  },
  // 备勤管理
  {
    path: "BeDuty",
    name: "BeDuty",
    component: () => import("@/views/oa/administration/beDuty/Index.vue"),
  },
  // 值班管理
  {
    path: "OnGuard",
    name: "OnGuard",
    component: () => import("@/views/oa/administration/onGuard/Index.vue"),
  },
];

// 发文管理相关路由
const docRouter = [
  // 发文拟稿
  {
    path: "DispatchDoc/:pType",
    name: "DispatchDoc",
    component: () => import("@/views/oa/officialDoc/dispatch/Index.vue"),
  },
  // 收文登记
  {
    path: "IncomeDoc/:pType",
    name: "IncomeDoc",
    component: () => import("@/views/oa/officialDoc/incoming/Index.vue"),
  },
  // 收文归档
  {
    path: "IncomeDocSort",
    name: "IncomeDocSort",
    component: () => import("@/views/oa/officialDoc/incoming/Index.vue"),
  },
  // 公文查询
  {
    path: "DocSearch",
    name: "DocSearch",
    component: () => import("@/views/oa/officialDoc/search/Index.vue"),
  },
];

// Oa 车辆相关的路由
const carRouter = [
  // 基本信息
  {
    path: "OaCarBaseInfo",
    name: "OaCarBaseInfo",
    component: () => import("@/views/oa/administration/car/baseInfo/Index.vue"),
  },
  // 司机管理
  {
    path: "Driver",
    name: "Driver",
    component: () => import("@/views/oa/administration/car/driver/Index.vue"),
  },
  // 派车申请
  {
    path: "OaSendCar/:pType",
    name: "OaSendCar",
    component: () => import("@/views/oa/administration/car/sendnfo/Index.vue"),
  },
  // 派车归队
  {
    path: "OaCarSendReturn",
    name: "OaCarSendReturn",
    component: () => import("@/views/oa/administration/car/sendReturn/Index.vue"),
  },
  // 保险
  {
    path: "OaCarInsure/:pType",
    name: "OaCarInsure",
    component: () => import("@/views/oa/administration/car/insure/Index.vue"),
  },
  // 年检
  {
    path: "OaCaryearCheck/:pType",
    name: "OaCaryearCheck",
    component: () => import("@/views/oa/administration/car/yearCheck/Index.vue"),
  },
  // 维修保养
  {
    path: "OaCarMaintain/:pType",
    name: "OaCarMaintain",
    component: () => import("@/views/oa/administration/car/maintain/Index.vue"),
  },
  // 合作机构
  {
    path: "OaCarCooperation",
    name: "OaCarCooperation",
    component: () => import("@/views/oa/administration/car/cooperate/Index.vue"),
  },
];

// 资产管理相关路由
const assetRouter = [
  // 资产登记
  {
    path: "AssetRegister",
    name: "AssetRegister",
    component: () => import("@/views/oa/assets/register/Index.vue"),
  },
  // 资产领用申请
  {
    path: "AssetApplicant",
    name: "AssetApplicant",
    component: () => import("@/views/oa/assets/applicant/Index.vue"),
  },
  // 资产借用申请
  {
    path: "AssetBorrowApplicant",
    name: "AssetBorrowApplicant",
    component: () => import("@/views/oa/assets/borrow/Index.vue"),
  },
  // 资产变更申请
  {
    path: "AssetChangeApplicant",
    name: "AssetChangeApplicant",
    component: () => import("@/views/oa/assets/change/Index.vue"),
  },
  // 资产保修申请
  {
    path: "AssetMaintainApplicant",
    name: "AssetMaintainApplicant",
    component: () => import("@/views/oa/assets/maintain/Index.vue"),
  },
  // 资产报废申请
  {
    path: "AssetScrapApplicant",
    name: "AssetScrapApplicant",
    component: () => import("@/views/oa/assets/scrap/Index.vue"),
  },
  // 资产明细表
  {
    path: "AssetDetial",
    name: "AssetDetial",
    component: () => import("@/views/oa/assets/report/AssetsDetialIndex.vue"),
  },
  // 部门资产明细表
  {
    path: "DeptAssetsIndex",
    name: "DeptAssetsIndex",
    component: () => import("@/views/oa/assets/report/DeptAssetsIndex.vue"),
  },
  // 资产分类查询
  {
    path: "AssetsTypeIndex",
    name: "AssetsTypeIndex",
    component: () => import("@/views/oa/assets/report/AssetsTypeIndex.vue"),
  },
];

// 办公用品相关路由
const officialGoodsRouter = [
  // 物资入库
  {
    path: "OfficalAssetInstore",
    name: "OfficalAssetInstore",
    component: () => import("@/views/oa/officialGoods/inStore/Index.vue"),
  },
  // 办公用品领用审核
  {
    path: "OfficalGoodsReceive/:pType",
    name: "OfficalGoodsReceive",
    component: () => import("@/views/oa/officialGoods/receive/Index.vue"),
  },
];

// 人事检查相关路由
const personalRouter = [
  // 我的全部申请
  {
    path: "MyAllApplicant/:pType",
    name: "MyAllApplicant",
    component: () => import("@/views/oa/personnel/myCheckIn/MyAllApplicant.vue"),
  },
  // 考勤登记
  {
    path: "CheckInSign/:pType",
    name: "CheckInSign",
    component: () => import("@/views/oa/personnel/checkIn/Index.vue"),
  },
  // 我的考勤
  {
    path: "MyCheckIn",
    name: "MyCheckIn",
    component: () => import("@/views/oa/personnel/myCheckIn/Index.vue"),
  },
  // 请假审核
  {
    path: "MyAllApplicant/:pType",
    name: "MyAllApplicant",
    component: () => import("@/views/oa/personnel/myCheckIn/MyAllApplicant.vue"),
  },

  // 部门考勤
  {
    path: "DeptCheckIn",
    name: "DeptCheckIn",
    // component: () => import('@/views/oa/personnel/deptCheckIn/Index.vue'),
    component: () => import("@/views/index/index/components/work/Detial.vue"),
  },
  // 用户操作考勤
  {
    path: "UserEditCheckIn",
    name: "UserEditCheckIn",
    component: () => import("@/views/oa/personnel/checkinEdit/Index.vue"),
  },
  // 权限管理
  {
    path: "OaPower",
    name: "OaPower",
    component: () => import("@/views/oa/personnel/power/Index.vue"),
  },
  // 通讯录
  {
    path: "AddressBook",
    name: "AddressBook",
    component: () => import("@/views/oa/personnel/addressBook/Index.vue"),
  },
];

// 人事管理相关路由
const personalManagerRouter = [
  // 人事基本信息
  {
    path: "PersonalbaseInfo/:pType",
    name: "PersonalbaseInfo",
    component: () => import("@/views/oa/personnelManager/personInfo/Index.vue"),
  },
  // 学历信息
  {
    path: "EducationInfo/:pType",
    name: "EducationInfo",
    component: () => import("@/views/oa/personnelManager/education/Index.vue"),
  },
  // 专业技术职称信息
  {
    path: "PersonTechnology/:pType",
    name: "PersonTechnology",
    component: () => import("@/views/oa/personnelManager/technology/Index.vue"),
  },
  // 其他资格证书
  {
    path: "OtherCertificate/:pType",
    name: "OtherCertificate",
    component: () => import("@/views/oa/personnelManager/otherCertificate/Index.vue"),
  },
  // 受聘专家
  {
    path: "EmployeedExpert/:pType",
    name: "EmployeedExpert",
    component: () => import("@/views/oa/personnelManager/employeedExpert/Index.vue"),
  },
  // 表彰奖励
  {
    path: "PersonAward/:pType",
    name: "PersonAward",
    component: () => import("@/views/oa/personnelManager/award/Index.vue"),
  },
  // 处分情况
  {
    path: "PersonPunish/:pType",
    name: "PersonPunish",
    component: () => import("@/views/oa/personnelManager/punish/Index.vue"),
  },
  // 年度考核
  {
    path: "PersonYearAudit/:pType",
    name: "PersonYearAudit",
    component: () => import("@/views/oa/personnelManager/yearAudit/Index.vue"),
  },
  // 人事合同
  {
    path: "PersonContract",
    name: "PersonContract",
    component: () => import("@/views/oa/personnelManager/contract/Index.vue"),
  },
  // 转正管理
  {
    path: "BecameForm",
    name: "BecameForm",
    component: () => import("@/views/oa/personnelManager/becameForm/Index.vue"),
  },
  // 外派情况
  {
    path: "PersonOutSend/:pType",
    name: "PersonOutSend",
    component: () => import("@/views/oa/personnelManager/outSend/Index.vue"),
  },
  // 职务
  {
    path: "PersonJob/:pType",
    name: "PersonJob",
    component: () => import("@/views/oa/personnelManager/job/Index.vue"),
  },
  // 科研情况
  {
    path: "PersonScientific/:pType",
    name: "PersonScientific",
    component: () => import("@/views/oa/personnelManager/scientific/Index.vue"),
  },
  // 家庭成员急关系
  {
    path: "PersonFamily/:pType",
    name: "PersonFamily",
    component: () => import("@/views/oa/personnelManager/familys/Index.vue"),
  },
  // 紧急联系人
  {
    path: "PersonEmergencyLink/:pType",
    name: "PersonEmergencyLink",
    component: () => import("@/views/oa/personnelManager/emergencyLink/Index.vue"),
  },
];

// 应急管理相关路由
const emergencyRouter = [
  // 关注企业信息管理
  {
    path: "FocusFirmInfo",
    name: "FocusFirmInfo",
    component: () => import("@/views/oa/emergency/focusFirm/firmInfo/Index.vue"),
  },
  // 关注企业风险管理
  {
    path: "FocusFirmRisk",
    name: "FocusFirmRisk",
    component: () => import("@/views/oa/emergency/focusFirm/firmRisk/Index.vue"),
  },
  // 关注企业处罚管理
  {
    path: "FocusFirmPenalize",
    name: "FocusFirmPenalize",
    component: () => import("@/views/oa/emergency/focusFirm/firmPenalize/Index.vue"),
  },
  // 关注企业整改管理
  {
    path: "FocusFirmReform",
    name: "FocusFirmReform",
    component: () => import("@/views/oa/emergency/focusFirm/firmReform/Index.vue"),
  },
  // 应急方案
  {
    path: "EmergencyScheme",
    name: "EmergencyScheme",
    component: () => import("@/views/oa/emergency/scheme/Index.vue"),
  },
  // 应急群管理--创建指南
  {
    path: "EmergencyGroupGuid",
    name: "EmergencyGroupGuid",
    component: () => import("@/views/oa/emergency/group/GroupGuid.vue"),
  },
  // 应急群管理
  {
    path: "EmergencyGroup",
    name: "EmergencyGroup",
    component: () => import("@/views/oa/emergency/group/Index.vue"),
  },
  // 应急群管理--聊天界面
  {
    path: "EmergencyChat",
    name: "EmergencyChat",
    component: () => import("@/views/oa/emergency/group/chat/Index.vue"),
  },
  // 应急群管理-- 应急资源
  {
    path: "EmergencyResource",
    name: "EmergencyResource",
    component: () => import("@/views/oa/emergency/resource/Index.vue"),
  },
  // 应急群管理-- 应急资源地图
  {
    path: "EmergencyResourceMap",
    name: "EmergencyResourceMap",
    component: () => import("@/views/oa/emergency/resource/map/Map.vue"),
  },
  // 动态报表 -- 创建任务
  {
    path: "DynamicReportCreate",
    name: "DynamicReportCreate",
    component: () => import("@/views/oa/emergency/dynamicReport/createReport/Index.vue"),
  },
  // 动态报表 -- 任务填报
  {
    path: "DynamicReportInput",
    name: "DynamicReportInput",
    component: () => import("@/views/oa/emergency/dynamicReport/reportInput/Index.vue"),
  },
  // 应急预警
  {
    path: "EmergencyWarning",
    name: "EmergencyWarning",
    component: () => import("@/views/oa/emergency/emergencyWarning/index.vue"),
  },
  // 动态报表 -- 任务填报
  {
    path: "DynamicForm",
    name: "DynamicForm",
    component: () => import("@/views/oa/emergency/dynamicForms/index.vue"),
  },
  // 动态报表 -- 任务填报
  {
    path: "DynamicFormItem/:pType/:bzType",
    name: "DynamicFormItem",
    component: () => import("@/views/oa/emergency/dynamicFormsItem/index.vue"),
  },
];

// 辅助功能相关路由
const assistRouter = [
  // 短信接收人维护
  {
    path: "SmsReceiveUser",
    name: "SmsReceiveUser",
    component: () => import("@/views/oa/assist/sms/receiveUser/Index.vue"),
  },
  // 短信发送申请
  {
    path: "SmsSendApplicant/:pType",
    name: "SmsSendApplicant",
    component: () => import("@/views/oa/assist/sms/send/Index.vue"),
  },
  // 天气信息
  {
    path: "WeatherInfo",
    name: "WeatherInfo",
    component: () => import("@/views/oa/assist/weather/Index.vue"),
  },
   // 社区论坛
   {
    path: "ForumManagement",
    name: "ForumManagement",
    component: () => import("@/views/oa/assist/forum/Index.vue"),
  },
  // 文档管理
  {
    path: "DocManager",
    name: "DocManager",
    component: () => import("@/views/oa/assist/docManager/Index.vue"),
  },
  // 我的日程
  {
    path: "MyCalender",
    name: "MyCalender",
    component: () => import("@/views/oa/assist/myCalender/Index.vue"),
  },
  // 政策文件
  {
    path: "PolicyFile",
    name: "PolicyFile",
    component: () => import("@/views/oa/assist/policyFile/Index.vue"),
  },
  // 知识库
  {
    path: "KnowledgeStore",
    name: "KnowledgeStore",
    component: () => import("@/views/oa/assist/knowledgeStore/Index.vue"),
  },
  // 知识库
  {
    path: "StudyJudge",
    name: "StudyJudge",
    component: () => import("@/views/oa/assist/studyJudge/Index.vue"),
  },
];

// 隐患管理相关路由
const hideDangerRouter = [
  // 隐患排查
  {
    path: "HideDangerCheck",
    name: "HideDangerCheck",
    component: () => import("@/views/oa/warning/hideDangerCheck/Index.vue"),
  },
  // 综合预警列表
  {
    path: "SumWarning",
    name: "SumWarning",
    component: () => import("@/views/oa/warning/sumWarning/Index.vue"),
  },
  // 人员求救列表
  {
    path: "personnelHelp",
    name: "personnelHelp",
    component: () => import("@/views/oa/warning/personnelHelp/Index.vue"),
  },
  // 人员超时列表
  {
    path: "personnelOvertimeAlarm",
    name: "personnelOvertimeAlarm",
    component: () => import("@/views/oa/warning/personnelOvertimeAlarm/Index.vue"),
  },
  // 传感器信息列表
  {
    path: "sensorIformation",
    name: "sensorIformation",
    component: () => import("@/views/oa/warning/sensorIformation/Index.vue"),
  },
  // 传感器报警列表
  {
    path: "sensorAlarms",
    name: "sensorAlarms",
    component: () => import("@/views/oa/warning/sensorAlarms/Index.vue"),
  },
  //区域超员
  {
    path: "regionalOvercrowding",
    name: "regionalOvercrowding",
    component: () => import("@/views/oa/warning/regionalOvercrowding/Index.vue"),
  },
  //煤矿信息
  {
    path: "collieryInformation",
    name: "collieryInformation",
    component: () => import("@/views/oa/warning/collieryInformation/Index.vue"),
  },
  //企业隐患
  {
    path: "enterpriseFile",
    name: "enterpriseFile",
    component: () => import("@/views/oa/warning/enterpriseFile/Index.vue"),
  },
  //企业详情
  {
    path: "businessDetails",
    name: "businessDetails",
    component: () => import("@/views/oa/warning/businessDetails/Index.vue"),
  },
  //限制区域报警
  {
    path: "restrictedAreasAlarm",
    name: "restrictedAreasAlarm",
    component: () => import("@/views/oa/warning/restrictedAreasAlarm/Index.vue"),
  },
  // 危化预警 - 公司企业预警
  {
    path: "EndangerFirm",
    name: "EndangerFirm",
    component: () => import("@/views/oa/warning/endanger/firmWarning/Index.vue"),
  },
  // 危化预警 - 报警信息
  {
    path: "EndangerAlarm",
    name: "EndangerAlarm",
    component: () => import("@/views/oa/warning/endanger/alarmWarning/Index.vue"),
  },
];

// 报表相关菜单
const reportRouter = [
  // 差旅报表
  {
    path: "TravelReport",
    name: "TravelReport",
    component: () => import("@/views/oa/report/travel/Index.vue"),
  },
  // 派车报表
  {
    path: "SendCarReport",
    name: "SendCarReport",
    component: () => import("@/views/oa/report/sendCar/Index.vue"),
  },
  // 发文报表
  {
    path: "DispatchDocReport",
    name: "DispatchDocReport",
    component: () => import("@/views/oa/report/dispatchDoc/Index.vue"),
  },
  // 收文报表
  {
    path: "IncomeDocReport",
    name: "IncomeDocReport",
    component: () => import("@/views/oa/report/incomeDoc/Index.vue"),
  },
];

const result = [
  ...indexRouter,
  ...docRouter,
  ...carRouter,
  ...administrationRouter,
  ...assetRouter,
  ...officialGoodsRouter,
  ...personalRouter,
  ...personalManagerRouter,
  ...emergencyRouter,
  ...assistRouter,
  ...hideDangerRouter,
  ...reportRouter,
];

export default result;
